﻿using System;

namespace SBPweb.Modules.Smartparts
{
    /// <summary>
    /// This interface represents a menu item.
    /// </summary>
	public interface IMenuItem
    {
        /// <summary>
        /// Gets the Text property of the IMenuItem.
        /// </summary>
        string Text
        {
            get;
        }

        /// <summary>
        /// Occurs, when the menu item pressed.
        /// </summary>
        event EventHandler<MenuEventArgs> Pressed;

        /// <summary>
        /// Occurs, when the menu item selected.
        /// </summary>
        event EventHandler<MenuEventArgs> Selected;

        /// <summary>
        /// Raises the Selected event.
        /// </summary>
        void Select();

        /// <summary>
        /// Raises the Pressed event.
        /// </summary>
        void Press();

    }
}